{% load i18n extra_functions %}

<div class="row">
	<div class="col-sm-6">
	
		<div class="form-horizontal">
				<div class="input-group">
					
					{% for field in action_form %}
					{% if field.label %}
						<label class="control-label col-sm-2">
							{{ field.label }} 			
						</label>
					{% endif %}
							<div class="col-sm-10">
							{{ field|selectaction }}
						</div>
					{% endfor %}
					
					<div class="input-group-btn">
					  <button type="submit" class="btn btn-primary" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">{% trans "Go" %}</button>
					</div>
						
				</div>
				<div class="col-sm-offset-2 col-sm-10">
					{% if actions_selection_counter %}
						<span class="action-counter" data-actions-icnt="{{ cl.result_list|length }}">{{ selection_note }}</span>
						{% if cl.result_count != cl.result_list|length %}
						<span class="all">{{ selection_note_all }}</span>
						<span class="question">
							<a href="#" title="{% trans "Click here to select the objects across all pages" %}">{% blocktrans with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktrans %}</a>
						</span>
						<span class="clear"><a href="#">{% trans "Clear selection" %}</a></span>
						{% endif %}
					{% endif %}
				</div>
		</div>
	
	
		
		
		

		
	</div>
</div>